package com.wenxixuanwu.fruitstore.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @author :小凡凡
 * @version :1.0
 * @Project :fruitstore
 * @Date :2022/4/27
 */

@Data
public class ProductVO {
    private Integer id ; //我真的不知道
    private String url ; //商品图片
    private String name ;
    private Integer count ; //库存数量，记得和库存表的连接
    private Integer saleCount ; //销量
    private Double oldPrice ; //原价
    private Double price ;//特价
    private String detail ;//详细信息
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date created;  //发布时间  导包java.util
    private Integer categoryId; //分类id，联立分类表
    private String cName; //分类
}
